package com.car.dal.dao.recruitment;

import java.util.List;

import com.car.dal.dao.ibatis.IbatisCommonDao;
import com.car.dal.object.TgGoodProvide;
import com.car.util.Page;

public class GoodProvideDaoImp extends IbatisCommonDao<TgGoodProvide, Long> implements GoodProvideDao{

	@Override
	public List<TgGoodProvide> getGoodProvideByType(TgGoodProvide goodProvide,
			Page page) {
		goodProvide.setFirstrownum(page.getFirstrownum());
		goodProvide.setPagesize(page.getPagesize());
		return this.queryForEntityList(TgGoodProvide.class, "getGoodProvideByType", goodProvide);
	}

	@Override
	public Integer getCountGoodProvideByType(TgGoodProvide goodProvide) {
		return this.queryForInteger("getCountGoodProvideByType", goodProvide);
	}

	@Override
	public List<TgGoodProvide> getGoodProvide(TgGoodProvide goodProvide) {
		// TODO Auto-generated method stub
		return this.queryForEntityList(TgGoodProvide.class, "getGoodProvide", goodProvide);
	}


     
}
